<?php

namespace app\common\model;

use think\Model;

class Goods extends Model
{
    public function category(){
        return $this->belongsTo('Category','cate_id')->bind('cate_name');
    }
    public function brand(){
        return $this->belongsTo('Brand','brand_id')->bind(['brand_name'=>'name']);
    }
    public function type(){
        return $this->belongsTo('Type','type_id')->bind('type_name');
    }
}
